#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void)
{
	int a[100], n, i, j, x;
	//char ch;
	scanf("%d", &n);
	//ch = getchar();
	for (i = 0; i <= n - 1; i++)
	{
		scanf("%d", &j);
		a[i] = j;
	}
	for (i = 0; i <= n - 1; i++)
	{
		for (j = i + 1; j <= n - 1; j++)
		{
			if (a[j] < a[i])
			{
				x = a[j];
				a[j] = a[i];
				a[i] = x;
			}
		}
		printf("%d", a[i]);
		if (i < n - 1)
			printf(" ");
	}
	return 0;
}